package com.zuijin.vue2blog.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文章参数表
 * </p>
 *
 * @author 醉瑾
 * @since 2022-04-24
 */
public class ArticleParam implements Serializable {
    @ApiModelProperty("文章id")
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer uid;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("文章编辑于0->富文本编辑器，1->MarkDown编辑器")
    private Integer editType;

    @ApiModelProperty("分类id，默认1（未知）")
    private Integer typeId;

    @ApiModelProperty("文章摘要")
    private String digest;

    @ApiModelProperty("文章标签")
    private String tags;

    @ApiModelProperty("创建时间")
    private Date createDate;

    @ApiModelProperty("修改时间")
    private Date updateDate;

    @ApiModelProperty("版本号（乐观锁）")
    private Integer version;

    @ApiModelProperty("文章标题")
    private String title;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("点赞数量")
    private Integer likeNum;

    @ApiModelProperty("评论数")
    private Integer commentNum;

    @ApiModelProperty("阅读数")
    private Integer readNum;

    @ApiModelProperty("是否公开 0 公开 1不公开")
    private Integer overt;

    @ApiModelProperty("逻辑删除字段 0->未删除 1->删除")
    private Integer deleted;

    @ApiModelProperty("审核状态 0 已审核 1未审核 2审核未通过")
    private Integer auditStatus;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getEditType() {
        return editType;
    }

    public void setEditType(Integer editType) {
        this.editType = editType;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getReadNum() {
        return readNum;
    }

    public void setReadNum(Integer readNum) {
        this.readNum = readNum;
    }

    public Integer getOvert() {
        return overt;
    }

    public void setOvert(Integer overt) {
        this.overt = overt;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    @Override
    public String toString() {
        return "ArticleParam{" +
                "id=" + id +
                ", uid=" + uid +
                ", createBy=" + editType +
                ", typeId=" + typeId +
                ", digest='" + digest + '\'' +
                ", tags='" + tags + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", version=" + version +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", likeNum=" + likeNum +
                ", commentNum=" + commentNum +
                ", readNum=" + readNum +
                ", overt=" + overt +
                ", deleted=" + deleted +
                ", auditStatus=" + auditStatus +
                ", auditTime=" + auditTime +
                '}';
    }
}
